#ifndef FileWrapper_h
#define FileWrapper_h
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <libxml/tree.h>
#include <string.h>
#include "Graph.h"
#include "Consts.h"

FILE *openFileFromDir(const char*,const char*, const char*);
int fillGraph(graph*,const char*);
double parseDouble(char*,int);
int writeResults(graph*,const char*,double,double,double);
int writeXml(graph*,const char*,const char*);
int addEdgeToXML(xmlNodePtr, edge*);
int addVertexToXml(xmlNodePtr,vertex*);
void addXGMMLstruct(const char*,xmlNodePtr);
void printNetwork(graph*,FILE*);
int save_xml_doc(xmlDocPtr,const char*,const char*);
void freeXml(xmlDocPtr);
const char *getClusterColor(int);
#endif
